-- GENERATED SPELL FOR [Vilebranch Blood Drinker] --


function spell0_2646(pUnit, Event) --@Blood Leech,Heal--
pUnit:FullCastSpellOnTarget(11015,pUnit)
pUnit:RegisterEvent('Sorts_2646', 550, 1)
end

function Sorts_2646(pUnit, Event)
local choix_sorts_2646 = math.random(0, 0)
if choix_sorts_2646 == 0 then
pUnit:RegisterEvent('spell0_2646', 1, 1)
end
end

function mob2646_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2646', math.random(1500, 3000), 1)
end

function mob2646_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2646_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2646_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2646, 1, 'mob2646_Action')
RegisterUnitEvent(2646, 2, 'mob2646_Leave')
RegisterUnitEvent(2646, 3, 'mob2646_Kill')
RegisterUnitEvent(2646, 4, 'mob2646_Die')
